//
//  BDMyOrderLayout.h
//  iOS_beboy
//
//  Created by wen on 2017/9/19.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BDMyOrderModel.h"

#define kBDOrderCellTitleHeight 35
#define kBDOrderCellContentImageWidth 75
#define kBDOrderCellContentImageHeight 66
#define kBDOrderCellContentImagePadding 12
#define kBDOrderCellContentTextPadding 10
#define kBDOrderCellContentButtonWidth 65

#define kBDOrderCellContentTextWidth (kBDScreenWidth - 10 * 2 - kBDOrderCellContentImageWidth - kBDOrderCellContentTextPadding * 2 - kBDOrderCellContentButtonWidth)

#define kBDOrderCellBackgroundColor [UIColor colorWithHexString:@"#f2f2f2"]// Cell背景灰色
#define kBDOrderCellHighlightColor [UIColor colorWithHexString:@"#f0f0f0"]// Cell高亮时灰色
#define kBDOrderCellInnerViewColor [UIColor colorWithHexString:@"#f7f7f7"]// Cell内部卡片灰色
#define kBDOrderCellInnerViewHighlightColor  [UIColor colorWithHexString:@"#f0f0f0"]// Cell内部卡片高亮时灰色

@interface BDMyOrderLayout : NSObject

- (instancetype)initWithOrder:(BDMyOrderModel *)order;

@property (nonatomic, strong) BDMyOrderModel *order;

// 顶部留白
@property (nonatomic, assign) CGFloat marginTop; //顶部灰色留白
// 下边留白
@property (nonatomic, assign) CGFloat marginBottom; //下边留白

//标题部分
@property (nonatomic, strong) YYTextLayout *titleLayout;
@property (nonatomic) CGFloat titleHeight;

//正文部分
@property (nonatomic, strong) NSString *contentImage;
@property (nonatomic, strong) NSString *contentImagePlaceholder;
@property (nonatomic, strong) YYTextLayout *contentLayout;
@property (nonatomic, strong) YYTextLayout *priceLayout;
@property (nonatomic, strong) NSString *buttonTitle;
@property (nonatomic, strong) UIColor *buttonBKColor;
@property (nonatomic, strong) UIColor *buttonTitleColor;
@property (nonatomic) BOOL buttonCanClick;

//工具栏部分
@property (nonatomic, strong) YYTextLayout *toolLayout;
@property (nonatomic) CGFloat toolHeight;

@property (nonatomic) CGFloat height;

@end
